from django.contrib import admin
from notebook.models import Note, NoteCategory

'''
class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 3
'''

class NoteAdmin(admin.ModelAdmin):
    fieldsets = [
        ('Note Body',           {'fields' : ['title', 'content']}),
        # auto_now = True, thus can't be managed via admin
        #('Date information',    {'fields' : ['curr_date']}),
    ]
    #inlines = [ChoiceInline]

class NoteTypeAdmin(admin.ModelAdmin):
    fieldsets = [
        ('Note Category',           {'fields' : ['name']}),
    ]

admin.site.register(Note, NoteAdmin)
admin.site.register(NoteCategory, NoteTypeAdmin)

